package com.itheima.object1;


//测试类&启动类:带main方法的类
public class TestStudent {

    public static void main(String[] args) {
        //类名.对象名=new 类名()
        Student stu = new Student();
        System.out.println(stu.name);
        System.out.println(stu.age);
        stu.name = "张三";
        stu.age = 23;
        System.out.println(stu.name);
        System.out.println(stu.age);
        stu.study();
        System.out.println(stu);
    }
}
